class UrlMappings {

	static mappings = {

		//RESTful - receive data about DonorRegister:
		
		"/donors/$id" (controller: "donorRest") {

			action = [GET: "show"]	 
		}	
					

		"/$controller/$action?/$id?"{
			constraints {
				// apply constraints here
			}
		}

		"/"(view:"/index")
		"500"(view:'/error')
	}
}
